package cn.tedu.bonfire.front.payment.controller;

import cn.tedu.bonfire.common.web.JsonResult;
import cn.tedu.bonfire.front.payment.service.impl.OrderServiceImpl;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("/order")
@Api(tags = "7.订单模块")
public class OrderController {

    @Autowired
    private OrderServiceImpl orderService;

    /*@GetMapping("/countSum/{userId}")
    @ApiOperation("查询首页列表")
    @ApiOperationSupport(order = 410)
    public JsonResult getOrderSum(@PathVariable Long userId) {
        Double orderSum = orderService.getOrderSum(userId);
        return JsonResult.ok(orderSum);
    }*/
}
